package org.osami.gateway.watteco.interfaces;

public class NodeInfoIPv4
{
	/**
	 * Node type (W1 or Plug).
	 */
	public static enum Type {
		W1, PLUG
	}

	private String macAddress;
	private Type nodeType;

	/**
	 * @param macAddress
	 * @param nodeType
	 */
	public NodeInfoIPv4(String macAddress, Type nodeType)
	{
		this.macAddress = macAddress;
		this.nodeType = nodeType;
	}

	/**
	 * @return the MAC address
	 */
	public String getMacAddress()
	{
		return this.macAddress;
	}

	/**
	 * @return the MAC address stripped of all ".".
	 */
	public String getID()
	{
		return this.macAddress.replace(".","").toUpperCase();
	}

	/**
	 * @return the nodeType
	 */
	public Type getNodeType()
	{
		return this.nodeType;
	}
}
